<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert title here</title>

		<link rel="stylesheet" href="/manager/style/css/screen.css"
			type="text/css" media="screen, projection" />

		<link rel="stylesheet" type="text/css"
			href="/manager/style/css/superfish.css" media="screen">

		<script type="text/javascript"
			src="/manager/style/js/jquery-1.4.2.min.js">
</script>

		<script type="text/javascript" src="/manager/style/js/superfish.js">
</script>

		<script type="text/javascript">



</script>
	</head>

	<body>
	<div class="right_context container">

			<div class="span-16">
	<fieldset>
						<legend>
							
								修改商品
							
						</legend>
	<div id="add_navi_div">
			<form action="/manager/goods-updateGoods.action" method="post">
				<table>
					<tr>
						<td><input type="text" name="goods.id" value="<s:property value="goods.id"/>" style="display: none"/></td>
					</tr>
					<tr>
						<td style="text-align: right;">
							商品分类
						</td>
						<td>
							<select name="goods.naviKey">
								<s:iterator value="naviList" var="n">
									<s:if test="%{#n.type == 'goods'}">
										<s:if test="%{#n.keyString == goods.naviKey}">
											<option value="<s:property value="#n.keyString" />"
												selected="selected">
												<s:property value="#n.displayName" />
											</option>
										</s:if>
										<s:else>
											<option value="<s:property value="#n.keyString" />">
												<s:property value="#n.displayName" />
											</option>
										</s:else>
									</s:if>
								</s:iterator>
							</select>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">
							是否上架
						</td>
						<td>
							<s:if test="%{goods.boolShelve}">
								<input type="checkbox" name="goods.boolShelve" value="true"	checked="checked" />
							</s:if>
							<s:else>
								<input type="checkbox" name="goods.boolShelve" value="true"/>
							</s:else>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">
							商品名称
						</td>
						<td>
							<input type="text" name="goods.displayName" value="<s:property value="goods.displayName" />" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">
							缩略名
						</td>
						<td>
							<input type="text" name="goods.shortName" value="<s:property value="goods.shortName" />" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">
							商品介绍
						</td>
						<td>
							<input type="text" name="goods.content" value="<s:property value="goods.content" />" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">
							商品成本价
						</td>
						<td>
							<input type="text" name="goods.costPrice" value="<s:property value="goods.costPrice" />"/>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">
							商品售价
						</td>
						<td>
							<input type="text" name="goods.price" value="<s:property value="goods.price" />" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">
							市场价格
						</td>
						<td>
							<input type="text" name="goods.marketPrice" value="<s:property value="goods.marketPrice" />" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;"> 
							促销价格
						</td>
						<td>
							<input type="text" name="goods.salePrice" value="<s:property value="goods.salePrice" />" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">
							库存量
						</td>
						<td>
							<input type="text" name="goods.stocks" value="<s:property value="goods.stocks" />" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">
							发布者邮件
						</td>
						<td>
							<input type="text" name="goods.postUserKey" value="<s:property value="goods.postUserKey" />" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">
							发布者姓名
						</td>
						<td>
							<input type="text" name="goods.postUserName" value="<s:property value="goods.postUserName" />" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;">
							商品缩略图(图片地址)
						</td>
						<td>
							<input type="text" name="goods.photo" value="<s:property value="goods.photo" />" />
						</td>
					</tr>
					<tr>
						<td></td><td><input type="submit" value="提交"/></td>
					</tr>
				</table>
			</form>
			</div>
		</fieldset>
		</div>
		</div>
	</body>
</html>
